/*
 * File:   UtilsTest.h
 * Author: Luis
 *
 * Created on 03-abr-2013, 15:02:26
 */

#ifndef UTILSTEST_H
#define	UTILSTEST_H

#include <cppunit/extensions/HelperMacros.h>

class UtilsTest : public CPPUNIT_NS::TestFixture {
    CPPUNIT_TEST_SUITE(UtilsTest);

    CPPUNIT_TEST(testCalculateSize);
    CPPUNIT_TEST(testGetBytes);
    CPPUNIT_TEST(testGetCRC32);
    CPPUNIT_TEST(testGetLastModificationTimeAndDate);
    CPPUNIT_TEST(testParseDateToShort);
    CPPUNIT_TEST(testParseTimeToShort);
    CPPUNIT_TEST(testIsCorruptFileFunctionWhitANonCorruptFile);
    CPPUNIT_TEST_SUITE_END();

public:
    UtilsTest();
    virtual ~UtilsTest();
    void setUp();
    void tearDown();

private:
    void testCalculateSize();
    void testGetBytes();
    void testGetCRC32();
    void testGetLastModificationTimeAndDate();
    void testParseDateToShort();
    void testParseTimeToShort();
    void testIsCorruptFileFunctionWhitANonCorruptFile();
};

#endif	/* UTILSTEST_H */

